Skip to content

Create placeholder uncertain locations modal - #1133

Open
slifty wants to merge 1 commit into
mainfrom
1122-use-uncertain-locations-flag
Open

Create placeholder uncertain locations modal#1133
slifty wants to merge 1 commit into
mainfrom
1122-use-uncertain-locations-flag

Conversation

@slifty

@slifty slifty commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This PR adds a new modal which will be developed to contain the uncertain locations UX. The new modal is rendered instead of the current location editing modal depending on whether the uncertain-locations feature flag has been enabled.

This modal is intended to override in ALL location editing entry points (e.g. record / folder / profile).

You can test the PR's functionality by enabling the uncertain-locations feature flag in your local environment and then clicking the "Click to set location" side pane in the file viewer.

You'll see something like this:

image

I do not believe this PR will need QA since at this point it is all behind a feature flag and UX is not really being implemented.

Resolves #1122

Copilot AI lite review requested due to automatic review settings August 11, 2026 20:25
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.36%. Comparing base (cccb683) to head (9710b23).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1133      +/-   ##
==========================================
+ Coverage   52.30%   52.36%   +0.05%     
==========================================
  Files         354      355       +1     
  Lines       12091    12102      +11     
  Branches     2185     2188       +3     
==========================================
+ Hits         6324     6337      +13     
  Misses       5543     5543              
+ Partials      224      222       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a placeholder “Uncertain locations” dialog and uses the uncertain-locations feature flag to switch location-editing entry points from the existing LocationPickerComponent to the new placeholder modal.

Changes:

  • Introduced UncertainLocationPickerComponent (template/styles/spec) as a placeholder modal for the upcoming uncertain-locations UX.
  • Updated EditService.openLocationDialog to choose between the existing and placeholder location dialogs based on the uncertain-locations feature flag.
  • Updated ProfileEditComponent.chooseLocationForItem to use the same feature-flag-based dialog selection, with accompanying unit test updates.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/app/file-browser/file-browser-components.module.ts Declares/exports the new uncertain location picker component so it’s usable in dialogs.
src/app/file-browser/components/uncertain-location-picker/uncertain-location-picker.component.ts Adds the placeholder dialog component logic (reads dialog data, supports closing).
src/app/file-browser/components/uncertain-location-picker/uncertain-location-picker.component.html Implements the placeholder dialog UI (header/body/footer).
src/app/file-browser/components/uncertain-location-picker/uncertain-location-picker.component.scss Adds dialog layout/styling consistent with CDK-opened dialogs.
src/app/file-browser/components/uncertain-location-picker/uncertain-location-picker.component.spec.ts Adds unit tests for rendering and close behaviors.
src/app/core/services/edit/edit.service.ts Switches the location dialog component via FeatureFlagService.isEnabled('uncertain-locations').
src/app/core/services/edit/edit.service.spec.ts Adds/updates tests to validate dialog selection for flag on/off.
src/app/core/components/profile-edit/profile-edit.component.ts Switches profile item location dialog via the same feature flag.
src/app/core/components/profile-edit/profile-edit.component.spec.ts Adds test coverage for flag on/off behavior in profile edit.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@slifty
slifty requested a review from aasandei-vsp August 11, 2026 20:38

@aasandei-vsp aasandei-vsp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a small comment.
I'd argue we would add another level of abstractisation, like a specific service for opening the uncertain location picker component, but that might be needed in the future, for now this is ok.

);
});

it('should open UncertainLocationPickerComponent when the uncertain-locations flag is enabled', async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toHaveBeenCalledWith satisfies any spy that has been called at some point, with the correct dialog, but this this needs to be made specific for every test.

We should add mockDialogService.open.calls.reset() to the beforeEach in the profile-edit spec, and switch all four to toHaveBeenCalledOnceWith(...). This way, we make sure every call to the mock dialog service is done specifically for every test.

This modal does not actually implement the new location editing UX,
however it does set up the groundwork for that implementation by
creating a new component which lives behind a feature flag.

This modal is intended to replace *all* location editor modal instances,
so not just record / folder but also profile milestones.

Issue #1122 Use the uncertain-locations feature flag

Claude-Session: https://claude.ai/code/session_01VkPycbEMFF8FJ6ZDvdebct
@slifty
slifty force-pushed the 1122-use-uncertain-locations-flag branch from f0b861a to 9710b23 Compare August 12, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use the uncertain-locations feature flag

3 participants